package weekendpractice.TimerDemo;
import java.util.Timer;
import java.util.TimerTask;

public class Timer1 {
    public static void main(String[] args) {
        Timer tim=new Timer();
        tim.schedule(new TimerTask() {
            @Override
            public void run() {
                System.out.println("last long??");
            }
        }, 1000, 1000);


    }
}
